package com.zensun.system.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 路由显示信息
 *
 * @author gmk
 */
@Data
public class MetaVo {

    @ApiModelProperty(value = "目录Id")
    private Long menuId;

    @ApiModelProperty("parentId")
    private Long parentId;

    @ApiModelProperty("排序")
    private String orderNum;

    /**
     * 设置该路由在侧边栏和面包屑中展示的名字
     */
    @ApiModelProperty("标题")
    private String title;

    /**
     * 设置该路由的图标，对应路径src/assets/icons/svg
     */
    @ApiModelProperty("图标")
    private String icon;

    /**
     * 设置为true，则不会被 <keep-alive>缓存
     */
    @ApiModelProperty("不缓存")
    private boolean noCache;

    /**
     * 高亮路径
     */
    @ApiModelProperty("高亮路径")
    private String activeMenu;

    public MetaVo() {
    }

    public MetaVo(String title, String icon) {
        this.title = title;
        this.icon = icon;
    }

    public MetaVo(String title, String icon, boolean noCache, String activeMenu) {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
        this.activeMenu = activeMenu;
    }
}
